package com.grapecc.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author 卖糖的兜兜
 * @version 1.0.0
 * @ClassName PaymentController.java
 * @Description TODO
 * @createTime 2022年02月08日 16:24:00
 */
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/payment/consul")
    public String getConsul(){
        return "spring port:"+serverPort +"\t"+ UUID.randomUUID().toString();
    }
}
